"""
脚本的登录程序
"""
import os
cmd_code = ""
# import asyncio
# from playwright.async_api import async_playwright
# import random
#
#
# class Login:
#     async def loginMain(*args):
#         async with async_playwright() as p:
#             browser = await p.chromium.launch(headless=False)
#             # browser = await p.chromium.launch()
#             page = await browser.new_page()
#             # no_respone_list = []
#             # respone_list = []
#             # page.on("response", lambda response: respone_list.append(
#             #     response.url) if "MGID=" in response.url else no_respone_list.append(response.url))
#
#             await page.goto('https://xyq.cbg.163.com/')
#
#             await page.wait_for_timeout(random.randint(1000, 2000))
#
#
# if __name__ == '__main__':
#     main = Login.loginMain()
#     asyncio.run(Login.loginMain())
